package com.briup.cms.service;

import com.briup.cms.exception.CustomerException;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 关于上传文件的接口，本地上传
 */
public interface IUploadLocalService {
    /**
     * 上传文件
     * @param files
     * @return 上传文件到本地的路径
     * @throws CustomerException
     */
    List<String> uploadLocalFile(MultipartFile[] files) throws CustomerException;

    /**
     * 上传文件，并携带参数，上传成功后再自动解压
     * @param files
     * @param args
     * @return
     * @throws CustomerException
     */
    default List<String> uploadLocalFileWithArgs(MultipartFile[] files,String args) throws CustomerException{
        throw new CustomerException("该接口目前不使用，未实现");
    };

}
